DateFormat formatter = new SimpleDateFormat("yyyy-MM-dd'T'hh:mm"); Date date = (Date)formatter.parse(sightingDateString);